package com.sc1905.crane.reading.util;


public class Util {

    //小说字数统计
    public static int count(String word){
        char[] t1 = null;
        t1 = word.toCharArray();
        int t0 = t1.length;
        int count = 0;
        for (int i = 0; i < t0; i++) {
            if (Character.toString(t1[i]).matches("[\\u4E00-\\u9FA5]+")) {
                count ++;

            }
        }
        return count;
    }
}
